package com.test.clyq.serviceImpl;

import java.util.List;

import com.test.clyq.dao.UsersLogDao;
import com.test.clyq.entity.Users;
import com.test.clyq.entity.UsersLog;
import com.test.clyq.service.UsersLogService;
import com.test.service.impl.BaseManager;
import com.test.util.Pagination;

/**
 * UsersLogServiceImpl. <br>
 * 管理员日志信息.
 * <p>
 * Copyright: Copyright (c) 2010-4-19 下午04:48:29
 * <p>
 * Company: 北京宽连十方数字技术有限公司
 * <p>
 * Author: liuxl@c-platform.com
 * <p>
 * Version: 1.0
 * <p>
 */
@SuppressWarnings("unchecked")
public class UsersLogServiceImpl extends BaseManager implements UsersLogService {

	private UsersLogDao usersLogDao;

	public void setUsersLogDao(UsersLogDao usersLogDao) {
		this.usersLogDao = usersLogDao;
	}

	public void addUsersLog(UsersLog userLog) {
		this.usersLogDao.addUsersLog(userLog);
	}

	public boolean delUsersLogById(Long id, Users user) {
		return this.usersLogDao.delUsersLogById(id, user);
	}

	public List<UsersLog> getUsersLog() {
		return this.usersLogDao.getUsersLog();
	}

	public UsersLog getUsersLogById(Long id) {
		return this.usersLogDao.getUsersLogById(id);
	}

	public UsersLog getUsersLogByName(String name) {
		return this.usersLogDao.getUsersLogByName(name);
	}

	public UsersLog getUsersLogByUsersId(Long usersId) {
		return this.usersLogDao.getUsersLogByUsersId(usersId);
	}

	public List<UsersLog> usersLogList(Pagination pagination) {
		return this.usersLogDao.usersLogList(pagination);
	}

	public List<UsersLog> usersLogListBySearch(Long userId, Long starTime, Long endTime, Pagination pagination) {
		return this.usersLogDao.usersLogListBySearch(userId, starTime, endTime, pagination);
	}

}
